﻿package cn.antscrpt.antLib.logo 
{
	import flash.display.Sprite;
	
	/**
	 * ...
	 * @author AntScript
     * @blog  http://www.antscript.cn
	 */
	public class Logo2D extends Sprite
	{
		protected var frame:Sprite;
		protected var center:Sprite;
		
		public function Logo2D(color:int=0x000000,alpha:Number=1) 
		{
			frame = new Sprite();
			frame.graphics.beginFill(color, alpha);
			frame.graphics.drawTriangles(PointData.FRAME_POINT_2D);
			frame.graphics.endFill();
			addChild(frame);
			
			center = new Sprite();
			center.graphics.beginFill(color, alpha);
			center.graphics.drawTriangles(PointData.SHAPE_POINT_2D);
			center.graphics.endFill();
			addChild(center);	
		}
		
	}
	
}